{% extends 'base_two.html' %}
{% load static %}
{% block content %}
			<div class="pull-right">
				<div class="user-content__box clearfix bgf">
					<div class="title">订单中心-我的收藏</div>
					<div class="collection-list__area clearfix">
                        {% for p in page %}
                            <div class="item-card">
							<a href="{% url 'home_page:item_show' id=p.goods_id %}" class="photo">
								<img src="{% static 'images/temp/M-001.jpg' %}" alt="锦瑟 原创传统日常汉服男绣花交领衣裳cp情侣装春夏款" class="cover">
								<div class="name">{{ p.goods_name }}</div>
							</a>
							<div class="middle">
								<div class="price"><small>￥</small>{{ p.goods_price }}</div>
								<div class="sale"><a href="{% url 'order_from:delete_collection' id=p.goods_id %}">取消收藏</a></div>
							</div>
						</div>
                        {% endfor %}




					</div>
					<div class="page text-right clearfix">
                        {% if page.has_previous %}   {# 判断是否有上一页 #}
                            <a class="disabled" href="/order_from/udai_collection/{{ page.previous_page_number }}">上一页</a>
                        {% endif %}

                        {% for num in page.paginator.page_range %}
                            {% if pindex == page.number %}
                                <a href="">{{ num }}</a>
                            {% else %}
                                <a href="/order_from/udai_collection/{{ num }}">{{ num }}</a>
                            {% endif %}
                        {% endfor %}

                        {% if page.has_next %} {# 下一页 #}
                            <a class="" href="/order_from/udai_collection/{{ page.next_page_number }}">下一页</a>
                        {% endif %}

					</div>
				</div>
			</div>
		</section>
	</div>
	<!-- 右侧菜单 -->
	<div class="right-nav">
		<ul class="r-with-gotop">
			<li class="r-toolbar-item">
				<a href="udai_welcome.html" class="r-item-hd">
					<i class="iconfont icon-user" data-badge="0"></i>
					<div class="r-tip__box"><span class="r-tip-text">用户中心</span></div>
				</a>
			</li>
			<li class="r-toolbar-item">
				<a href="udai_shopcart.html" class="r-item-hd">
					<i class="iconfont icon-cart"></i>
					<div class="r-tip__box"><span class="r-tip-text">购物车</span></div>
				</a>
			</li>
			<li class="r-toolbar-item">
				<a href="udai_collection.html" class="r-item-hd">
					<i class="iconfont icon-aixin"></i>
					<div class="r-tip__box"><span class="r-tip-text">我的收藏</span></div>
				</a>
			</li>
			<li class="r-toolbar-item">
				<a href="" class="r-item-hd">
					<i class="iconfont icon-liaotian"></i>
					<div class="r-tip__box"><span class="r-tip-text">联系客服</span></div>
				</a>
			</li>
			<li class="r-toolbar-item">
				<a href="issues.html" class="r-item-hd">
					<i class="iconfont icon-liuyan"></i>
					<div class="r-tip__box"><span class="r-tip-text">留言反馈</span></div>
				</a>
			</li>
			<li class="r-toolbar-item to-top">
				<i class="iconfont icon-top"></i>
				<div class="r-tip__box"><span class="r-tip-text">返回顶部</span></div>
			</li>
		</ul>
		<script>
			$(document).ready(function(){ $('.to-top').toTop({position:false}) });
		</script>
	</div>
{% endblock %}